MCDoAction
Your application can use theMCDoAction
function to invoke a movie controller component and have it perform a specified action.
pascal ComponentResult MCDoAction (MovieController mc, short action, void *params;
mc
- Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager'sOpenComponent
orOpenDefaultComponent
function, or from theNewMovieController
function.action
- Specifies the action to be taken. See "Movie Controller Actions," which begins on page 2-15, for descriptions of the actions supported by movie controller components.
params
- Points to the parameter data appropriate to the action. See the individual action descriptions in "Movie Controller Actions," which begins on page 2-15, for information about the parameters required for each supported action.
DESCRIPTION
For example, your application might define a menu item that stops all currently playing movies. When the user selects this menu item, your application could use theMCDoAction
function to instruct each controller to stop playing. You would do so by specifying anmcActionPlay
action with the parameters set to 0 to indicate that the controller should stop playing the movie.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help